package com.itheima.api.hashset.demo01;

import java.util.HashSet;

public class HashDemo01 {

    public static void main(String[] args) {

        HashSet<String> hashSet = new HashSet<>();

        hashSet.add("hello");
        hashSet.add("world");
        hashSet.add("java");
        hashSet.add("java");
        hashSet.add("通话");
        hashSet.add("重地");

        hashSet.forEach(s -> System.out.println(s));
    }
}
